import request from '@/utils/request'

const api_name = '/admin/cmn/dict'
// /admin/cmn/dict
// /api/cmn/dict
// localhost:3000/admin/cmn/dict/findByDictCode/Hostype
export default {
  findByDictCode(dictCode) {
    return request({
      url: `${api_name}/findByDictCode/${dictCode}`,
      method: 'get'
    })
  },
// localhost:8202/admin/cmn/dict/findByDictCode/Beijin
  findByParentId(parentId) {
    return request({
      url: `${api_name}/findChildData/${parentId}`,
      method: 'get'
    })
  }
}
